home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 4
/
Eagles_Nest_Mac_Collection_Disc_4.TOAST
/
Database Management
/
4DCallQK2
/
Call QK2.c
next >
Wrap
C/C++ Source or Header
|
1990-12-18
|
2KB
|
49 lines
/*----------------------------------------------------------------------------+
|*****CallQK2 4D external***** |
|Calls a Quickey from by name. |
| |
|Written by Tony Mann 1990 |
|Free from Spontaneous Software |
|This is in the public domain, do what you wish with it. |
| NOTE:You need Quickeys 2.0.x to run this. |
| |
|CallQK2(keyName ; result) |
| keyName (string): key name to execute |
| result (integer): returns zero if everything OK |
| |
| Tony Mann |
| Spontaneous Software |
| 2560 24th Ave East |
| Seattle WA 98112 |
| (408) 328-1180 |
| CIS: 72260, 1404 |
| Amer Online: TonyM15 |
| |
+----------------------------------------------------------------------------*/
/* The project should include one library: MacTraps */
#define QuicKeysDriverName "\p.Quickeys"
#define QK2PlayByName 17
/* Prototypes */
pascal void main(char *keyName, int *result);
/* Main routine */
pascal void main(keyName, result)
char *keyName;
int *result;
{
int refNum;
/*strcpy(keyName,"\pMy session");*/
*result=OpenDriver(QuicKeysDriverName, &refNum);
if (*result==noErr)
{
*result=Control(refNum,QK2PlayByName,&keyName);
}
}